package com.neo.rabbit.topic;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Component
@RabbitListener(queues = "topic.messages")
public class TopicReceiver2
{
    @RabbitHandler
    public void process(String message)
    {
        log.info("Topic Receiver2  : " + message);
    }
}
